Optimal. Leaf size=81 \[ \frac{\sqrt{a+b x^2} (4 A+3 B x)}{2 b^2}-\frac{x^2 (A+B x)}{b \sqrt{a+b x^2}}-\frac{3 a B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0434866, antiderivative size = 81, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {819, 780, 217, 206} \[ \frac{\sqrt{a+b x^2} (4 A+3 B x)}{2 b^2}-\frac{x^2 (A+B x)}{b \sqrt{a+b x^2}}-\frac{3 a B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 819
Rule 780
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{x^3 (A+B x)}{\left (a+b x^2\right )^{3/2}} \, dx &=-\frac{x^2 (A+B x)}{b \sqrt{a+b x^2}}+\frac{\int \frac{x (2 a A+3 a B x)}{\sqrt{a+b x^2}} \, dx}{a b}\\ &=-\frac{x^2 (A+B x)}{b \sqrt{a+b x^2}}+\frac{(4 A+3 B x) \sqrt{a+b x^2}}{2 b^2}-\frac{(3 a B) \int \frac{1}{\sqrt{a+b x^2}} \, dx}{2 b^2}\\ &=-\frac{x^2 (A+B x)}{b \sqrt{a+b x^2}}+\frac{(4 A+3 B x) \sqrt{a+b x^2}}{2 b^2}-\frac{(3 a B) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{x}{\sqrt{a+b x^2}}\right )}{2 b^2}\\ &=-\frac{x^2 (A+B x)}{b \sqrt{a+b x^2}}+\frac{(4 A+3 B x) \sqrt{a+b x^2}}{2 b^2}-\frac{3 a B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{5/2}}\\ \end{align*}
Mathematica [A] time = 0.0522584, size = 72, normalized size = 0.89 \[ \frac{a (4 A+3 B x)+b x^2 (2 A+B x)}{2 b^2 \sqrt{a+b x^2}}-\frac{3 a B \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{2 b^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 93, normalized size = 1.2 \begin{align*}{\frac{{x}^{3}B}{2\,b}{\frac{1}{\sqrt{b{x}^{2}+a}}}}+{\frac{3\,Bax}{2\,{b}^{2}}{\frac{1}{\sqrt{b{x}^{2}+a}}}}-{\frac{3\,Ba}{2}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){b}^{-{\frac{5}{2}}}}+{\frac{A{x}^{2}}{b}{\frac{1}{\sqrt{b{x}^{2}+a}}}}+2\,{\frac{Aa}{{b}^{2}\sqrt{b{x}^{2}+a}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.59985, size = 448, normalized size = 5.53 \begin{align*} \left [\frac{3 \,{\left (B a b x^{2} + B a^{2}\right )} \sqrt{b} \log \left (-2 \, b x^{2} + 2 \, \sqrt{b x^{2} + a} \sqrt{b} x - a\right ) + 2 \,{\left (B b^{2} x^{3} + 2 \, A b^{2} x^{2} + 3 \, B a b x + 4 \, A a b\right )} \sqrt{b x^{2} + a}}{4 \,{\left (b^{4} x^{2} + a b^{3}\right )}}, \frac{3 \,{\left (B a b x^{2} + B a^{2}\right )} \sqrt{-b} \arctan \left (\frac{\sqrt{-b} x}{\sqrt{b x^{2} + a}}\right ) +{\left (B b^{2} x^{3} + 2 \, A b^{2} x^{2} + 3 \, B a b x + 4 \, A a b\right )} \sqrt{b x^{2} + a}}{2 \,{\left (b^{4} x^{2} + a b^{3}\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 7.67201, size = 117, normalized size = 1.44 \begin{align*} A \left (\begin{cases} \frac{2 a}{b^{2} \sqrt{a + b x^{2}}} + \frac{x^{2}}{b \sqrt{a + b x^{2}}} & \text{for}\: b \neq 0 \\\frac{x^{4}}{4 a^{\frac{3}{2}}} & \text{otherwise} \end{cases}\right ) + B \left (\frac{3 \sqrt{a} x}{2 b^{2} \sqrt{1 + \frac{b x^{2}}{a}}} - \frac{3 a \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{2 b^{\frac{5}{2}}} + \frac{x^{3}}{2 \sqrt{a} b \sqrt{1 + \frac{b x^{2}}{a}}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.21729, size = 95, normalized size = 1.17 \begin{align*} \frac{{\left ({\left (\frac{B x}{b} + \frac{2 \, A}{b}\right )} x + \frac{3 \, B a}{b^{2}}\right )} x + \frac{4 \, A a}{b^{2}}}{2 \, \sqrt{b x^{2} + a}} + \frac{3 \, B a \log \left ({\left | -\sqrt{b} x + \sqrt{b x^{2} + a} \right |}\right )}{2 \, b^{\frac{5}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]